package com.ruimei.entitys.enums;

public enum Political
{
  YOUNG_PIONEERS("少先队员"),  COMMUNIST_YOUTH_LEAGUE_MEMBER("共青团员"),  PROBATIONARY_MEMBER("预备党员"),  PARTY_MEMBERS_OF_THE_COMMUNIST_PARTY_OF_CHINA("中共党员"),  DEMOCRATIC_PARTIES("民主党派"),  THE_MASSES("群众"),  OTHER("其它");
  
  private String name;
  
  private Political(String name)
  {
    this.name = name;
  }
  
  public String getName()
  {
    return this.name;
  }
  
  public static Political matching(String ch)
  {
    switch (ch)
    {
    case "少先队员": 
      return YOUNG_PIONEERS;
    case "共青团员": 
      return COMMUNIST_YOUTH_LEAGUE_MEMBER;
    case "预备党员": 
      return PROBATIONARY_MEMBER;
    case "中共党员": 
      return PARTY_MEMBERS_OF_THE_COMMUNIST_PARTY_OF_CHINA;
    case "民主党派": 
      return DEMOCRATIC_PARTIES;
    case "群众": 
      return THE_MASSES;
    case "其它": 
      return OTHER;
    }
    return OTHER;
  }
}


/* Location:              E:\360MoveData\Users\admin\Desktop\teacher_wap-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes\com\ruimei\entitys\enums\Political.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       0.7.1
 */